package com.pacific.uumconsole.biz.user;

import com.pacific.uumconsole.dal.dao.e8schema.custom.AccountMapperCustom;
import com.pacific.uumconsole.dal.dao.e8schema.custom.UserMapperCustom;
import com.pacific.uumconsole.dal.dao.e8schema.mbg.UserMapper;
import com.pacific.uumconsole.model.po.e8schema.mbg.Account;
import com.pacific.uumconsole.model.po.e8schema.mbg.AccountInfo;
import com.pacific.uumconsole.model.po.e8schema.mbg.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by admin on 2017-04-17.
 */
@Service
public class UserService {
    @Autowired
    private UserMapperCustom userMapperCustom;
    @Autowired
    private AccountMapperCustom accountMapperCustom;

    public User getUserById(Integer id) {
        return userMapperCustom.selectByPrimaryKey(id);
    }

    public AccountInfo getAccountByName(String name) {
        return accountMapperCustom.getAccountByName(name);
    }
}
